package com.snail.mobile.sim.oss.dictionaryinfo.model;
// Generated 2014-5-28 9:06:28 by Hibernate Tools 3.1.0.beta4



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="tbl_dictionary_info_oss"
 *     
 */

public class TblDictionaryInfoOss extends com.sungrid.seine.oss.framework.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer nid;
    private String sparamName;
    private String sparamKey;
    private String sparamValue;


    // Constructors

    /** default constructor */
    public TblDictionaryInfoOss() {
    }

    
    /** full constructor */
    public TblDictionaryInfoOss(String sparamName, String sparamKey, String sparamValue) {
        this.sparamName = sparamName;
        this.sparamKey = sparamKey;
        this.sparamValue = sparamValue;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="N_ID"
     *         
     */

    public Integer getNid() {
        return this.nid;
    }
    
    public void setNid(Integer nid) {
        this.nid = nid;
    }
    /**       
     *      *            @hibernate.property
     *             column="S_PARAM_NAME"
     *             length="255"
     *         
     */

    public String getSparamName() {
        return this.sparamName;
    }
    
    public void setSparamName(String sparamName) {
        this.sparamName = sparamName;
    }
    /**       
     *      *            @hibernate.property
     *             column="S_PARAM_KEY"
     *             length="255"
     *         
     */

    public String getSparamKey() {
        return this.sparamKey;
    }
    
    public void setSparamKey(String sparamKey) {
        this.sparamKey = sparamKey;
    }
    /**       
     *      *            @hibernate.property
     *             column="S_PARAM_VALUE"
     *             length="255"
     *         
     */

    public String getSparamValue() {
        return this.sparamValue;
    }
    
    public void setSparamValue(String sparamValue) {
        this.sparamValue = sparamValue;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("sparamName").append("='").append(getSparamName()).append("' ");			
      buffer.append("sparamKey").append("='").append(getSparamKey()).append("' ");			
      buffer.append("sparamValue").append("='").append(getSparamValue()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof TblDictionaryInfoOss) ) return false;
		 TblDictionaryInfoOss castOther = ( TblDictionaryInfoOss ) other; 
         
		 return ( (this.getNid()==castOther.getNid()) || ( this.getNid()!=null && castOther.getNid()!=null && this.getNid().equals(castOther.getNid()) ) )
 && ( (this.getSparamName()==castOther.getSparamName()) || ( this.getSparamName()!=null && castOther.getSparamName()!=null && this.getSparamName().equals(castOther.getSparamName()) ) )
 && ( (this.getSparamKey()==castOther.getSparamKey()) || ( this.getSparamKey()!=null && castOther.getSparamKey()!=null && this.getSparamKey().equals(castOther.getSparamKey()) ) )
 && ( (this.getSparamValue()==castOther.getSparamValue()) || ( this.getSparamValue()!=null && castOther.getSparamValue()!=null && this.getSparamValue().equals(castOther.getSparamValue()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getNid() == null ? 0 : this.getNid().hashCode() );
         result = 37 * result + ( getSparamName() == null ? 0 : this.getSparamName().hashCode() );
         result = 37 * result + ( getSparamKey() == null ? 0 : this.getSparamKey().hashCode() );
         result = 37 * result + ( getSparamValue() == null ? 0 : this.getSparamValue().hashCode() );
         return result;
   }   





}
